Skip to content

refactor(otlp-exporter-base): promisify sendWithHttp#6434

Merged
pichlermarc merged 1 commit intoopen-telemetry:mainfrom
dynatrace-oss-contrib:refactor/http-transport-utils
Mar 4, 2026
Merged

refactor(otlp-exporter-base): promisify sendWithHttp#6434
pichlermarc merged 1 commit intoopen-telemetry:mainfrom
dynatrace-oss-contrib:refactor/http-transport-utils

Conversation

@pichlermarc
Copy link
Copy Markdown
Member

@pichlermarc pichlermarc commented Feb 20, 2026

Which problem is this PR solving?

This change refactors sendWithHttp() to directly use a Promise instead of going through another callback, which reduces indirection and simplifies testing.

Fixes #5990

@pichlermarc pichlermarc changed the title Refactor/http transport utils refactor(otlp-exporter-base): promisify sendWithHttp Feb 20, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.69%. Comparing base (661cd84) to head (e99a62b).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
...xporter-base/src/transport/http-transport-utils.ts 97.36% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6434   +/-   ##
=======================================
  Coverage   95.69%   95.69%           
=======================================
  Files         364      364           
  Lines       11791    11793    +2     
  Branches     2748     2752    +4     
=======================================
+ Hits        11283    11285    +2     
  Misses        508      508           
Files with missing lines Coverage Δ
...rter-base/src/transport/http-exporter-transport.ts 95.65% <100.00%> (-0.51%) ⬇️
...xporter-base/src/transport/http-transport-utils.ts 95.31% <97.36%> (+0.39%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pichlermarc pichlermarc force-pushed the refactor/http-transport-utils branch from 7b50a30 to e99a62b Compare February 26, 2026 09:19
@pichlermarc pichlermarc marked this pull request as ready for review February 26, 2026 09:45
@pichlermarc pichlermarc requested a review from a team as a code owner February 26, 2026 09:45
@pichlermarc pichlermarc added this pull request to the merge queue Mar 4, 2026
Merged via the queue into open-telemetry:main with commit 253fec6 Mar 4, 2026
28 checks passed
@pichlermarc pichlermarc deleted the refactor/http-transport-utils branch March 4, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[http exporter] error callback is called twice

4 participants